//
//  PinYinItemView.h
//  ToolLibrary
//
//  Created by 蓓蕾 on 2024/1/22.
//  Copyright © 2024 Yang. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface PinYinConfig : NSObject
/** 拼音字体大小，默认12 */
@property (nonatomic, strong) UIFont *pinYinFont;
/** 文字字体大小，默认12 */
@property (nonatomic, strong) UIFont *wordFont;
/** 统一设置拼音与文字的字体大小，默认12 */
@property (nonatomic, strong) UIFont *font;
/** 拼音字体颜色 */
@property (nonatomic, strong) UIColor *pinYinColor;
/** 文字字体颜色 */
@property (nonatomic, strong) UIColor *wordColor;
/** 字体颜色 */
@property (nonatomic, strong) UIColor *color;
/** 拼音与文字之间的间距，默认是2 */
@property (nonatomic, strong) NSString *margin;
/** 拼音和文字整体View的宽度，不设置使用自适应 */
@property (nonatomic, assign) CGFloat itemWidth;
/** 拼音和文字整体View的高度，不设置使用自适应 */
@property (nonatomic, assign) CGFloat itemHeight;
/** 拼音和文字整体View的高度，不设置使用自适应 */
@property (nonatomic, strong) NSValue *viewSize;

@end

@interface PinYinItemView : UIView


-(id)initWithConfig:(PinYinConfig *)config;

@property (nonatomic, strong) NSString *pinYinString;

@property (nonatomic, strong) NSString *wordString;

@property (nonatomic, strong) PinYinConfig *config;


@end

NS_ASSUME_NONNULL_END
